<template>
    <div>
      <div v-for="(item, index) in studentsMsg" :key="index">
            <Avatar size='large' style="color: #f56a00;background-color: #fde3cf">{{item.userName }}</Avatar>
      </div>
    </div>
</template>
<script>
export default {
    props:['major'],
    data () {
      return {
          studentsMsg:[],
          Major:this.major
      }
},
    methods: {},
    beforeMount() {
     let sendMsg={major:this.Major}
     console.log(sendMsg)
      this.$axios({
      method: "post",
      url: "http://"+this.urlpath+"/FindSomeStudents",
      data:sendMsg
    }).then(res => {
      this.studentsMsg = res.data;
      console.log(this.studentsMsg)
    });
    },

}
</script>
<style scoped>

</style>